import { _decorator, UITransform } from 'cc';
import { RecycleComponent } from '../core/RecycleComponent';
const { ccclass, property } = _decorator;

@ccclass('PokerRecycleComponent')
export class PokerRecycleComponent extends RecycleComponent {

    onReuse(args: any): void {

    }

    onRecycle(): void {
        // 解注册点击事件
        const transform = this.node.getComponent(UITransform);
        if (!transform) return;
        transform.anchorY = 0.5;
    }

    /**
     * 动画的事件回调
     */
    run_active() {
        this.node.emit('run_active');
    }
}


